package com.tsk.example.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author: 黄嘉振
 * @create: 2023/3/9 17:52
 * @description:    通过配置中心映射为java对象配置
 **/
@Configuration
@ConfigurationProperties(prefix = "xxx")
@Data
public class DemoProperties {
    private String field1;
    private String field2;
}
